package com.zzy.pojo.system.login;

import com.zzy.pojo.system.login.resp.SystemMenuRespDTO;
import com.zzy.pojo.system.login.resp.SystemRoleRespDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "User", description = "用户")
public class UserDTO implements Serializable {

    long serialVersionUID = -1390703452625033155L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "账户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "角色")
    private List<SystemRoleRespDTO> roles;

    @ApiModelProperty(value = "角色")
    private List<SystemMenuRespDTO> menus;

}